<?php
	include_once dirname(__FILE__).'/../../../../config/config.php';
	
	function execSql($sql){
		$config = new Config();
		$config->DB->createConnection();
		$config->DB->query($sql);
		$config->DB->destroyConnection();
		return "OK";
	}
	
	function fetch($sql){
		$config = new Config();
		$config->DB->createConnection();
		$arr = $config->DB->fetch_array($sql);
		$config->DB->destroyConnection();
		return serialize($arr);
	}

?>